projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58ab9dd
)
Adwaita: allow suggested and destructive action buttons in lists
author
Jakub Steiner
<jimmac@gmail.com>
Wed, 3 Feb 2021 22:13:24 +0000
(23:13 +0100)
committer
Jakub Steiner
<jimmac@gmail.com>
Wed, 3 Feb 2021 22:15:30 +0000
(23:15 +0100)
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3643
gtk/theme/Adwaita/_common.scss
patch
|
blob
|
history
diff --git
a/gtk/theme/Adwaita/_common.scss
b/gtk/theme/Adwaita/_common.scss
index 77790d75289f72513703bcb8d29e90316a5f0eb4..5588e4fb40aae8e7219bd5298f809462201e66a9 100644
(file)
--- a/
gtk/theme/Adwaita/_common.scss
+++ b/
gtk/theme/Adwaita/_common.scss
@@
-933,6
+933,14
@@
list > row button.image-button:not(.flat) {
&:hover { @include button(hover); }
&:active,
&:checked { @include button(active); }
+
+ @each $b_type, $b_color in (suggested-action, $selected_bg_color),
+ (destructive-action, $destructive_color) {
+ &.#{$b_type} { // allow colored buttons in lists #3643
+ @include button(normal, $b_color, white);
+ @include focus-ring($fc: $alt_focus_border_color);
+ }
+ }
}
/*********